

<!--提示框-->
<div uib-alert ng-repeat="msg in $root.tips.message"
     dismiss-on-timeout="{{msg.duration}}"
     close="$root.tips.close($index)" type="{{msg.type}}">
    {{msg.text}}
</div>

<!--短信模版-->
<div class="row">
    <form class="mt20" role="form">

        <h3>短信模板</h3>
        <div class="form-group">
            <textarea class="form-control" ng-model="smsTemplate.Mcont" rows="3"></textarea>
            <input type="hidden" ng-bind="smsTemplate.Id">
        </div>
        <button type="button" ng-click="add(smsTemplate.Id)" class="btn btnCustom btn-lg btnLg mr5">提交</button>
        <button type="button" class="btn btnHui btn-lg btnLg">重置</button>
    </form>
    <form class="mt20" role="form">
        <div class="row">
            <div class="col-md-offset-7 col-lg-3 pull-right">
                <div class="input-group">
                    <input type="text" class="form-control" ng-model="smsTemplate.keyword" placeholder="关键词">
                    <span class="input-group-btn">
                        <button class="btn btn-default" ng-click="search()" type="button">搜索</button>
                        </span>
                </div>
            </div>
        </div>

    </form>
</div>
<!--表格内容-->
<div class="row mt20">

    <div class="table-responsive">
        <table class="table table-bordered">
            <thead>
            <tr>
                <th>序号</th>
                <th width="50%">短信内容</th>
                <th>编辑</th>
                <th>删除</th>
            </tr>
            </thead>
            <tbody  class="smsDel">
            <tr ng-repeat="template in templateData | orderBy:'-SMS_MID'">
                <td>{{$index + 1}}</td>
                <td>{{template.SMS_Mcont}}</td>
                <td><a href="#" ng-click="editTemplate($event, template.SMS_MID)"><img src="static/img/edit.png"  alt=""></a></td>
                <td><a href="#" ng-click="removeTemplate($event, template.SMS_MID)"><img src="static/img/delete.png"   alt=""></a></td>
            </tr>


            </tbody>
        </table>


    </div>
</div>
<!--分页与操作信息-->
<div class="row">
    <div class="col-lg-9 col-sm-9 col-md-8 col-xs-6">
        <span>共计 [ <b class="red">{{totalItems}}</b> ] 条记录</span>
    </div>
    <div class="col-lg-3 col-sm-6 col-md-4 col-xs-6 pull-right">
        <div ng-show="totalItems > rows">
            <uib-pagination class="pagination PagingCustom pull-right"
                            items-per-page="rows"
                            ng-model="currentPage"
                            total-items="totalItems"
                            max-size="maxSize"
                            ng-change="pageChanged()"
                            boundary-links="false"
                            boundary-link-numbers="true"
                            rotate="false"
                            force-ellipses="true"
                            previous-text="‹"
                            next-text="›">
            </uib-pagination>
        </div>
    </div>
</div>